Developer --> Technical Publications
PATHMac OS 8 Developer Documentation > Human Interface Toolbox > Menu Manager >

Mac OS 8 Menu Manager Reference


Contextual Menu Gestalt Selector Constants

Before calling any contextual menu functions, your application should pass the selector gestaltContextualMenuAttr to the Gestalt function to determine whether contextual menu functions are available.

enum{
    gestaltContextualMenuAttr   = 'cmnu'
};

Constant description

gestaltContextualMenuAttr
The Gestalt selector passed to the Gestalt function to determine whether contextual menu functions are available. Produces a value whose bits you should test to determine whether the contextual menu functions are available.

Your program can use the following value to test for the presence of contextual menu functions:

enum{
    gestaltContextualMenuTrapAvailable  = 1
};

Constant description

gestaltContextualMenuTrapAvailable
If this bit is set, the contextual menu functions are available to 68K applications. If this bit is not set, these functions are not available to 68K applications.

© 1998 Apple Computer, Inc. - (Last Updated 19 Nov 98)

Previous | Back Up One Level | Next |